package com.example.demo.dao;

import com.example.demo.entity.UserEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserDao {

    //通过ID查询单条数据
    public UserEntity queryUserByIdDao(int uid);

    //通过实体作为筛选条件查询
    public List<UserEntity> queryUserAllDao();

    // 登录
    public UserEntity loginUserDao(UserEntity user);

    //重名
    public UserEntity chongDao(UserEntity user);

    //注册
    public int insertUserDao(UserEntity user);

    //修改个人信息
    public int userUpdateDao(UserEntity user);

}
